package com.niiwoo.civet.trade.enums.Intelligence;

import com.niiwoo.tripod.provider.exception.NoSuchEnumValueException;
import lombok.AllArgsConstructor;
import lombok.Getter;

/**
 * 标的包表状态枚举
 * @author liuchun
 *
 * 2018年11月1日
 */
@Getter
@AllArgsConstructor
public enum ProjectPackageStatusEnum {

	PACKAGING((byte)0,"打包中"),
	WAITING_PUBLISH((byte)1,"待发布"),
	INVESTING((byte)2,"投资中"),
	PRESALE_OUT((byte)3,"已抢光"),
	SALE_OUT((byte)4,"已售罄"),
	MISCARRY((byte)5,"流包")
	;
	
	
	private Byte status;
	
	private String msg;

	public static ProjectPackageStatusEnum enumOf(Byte status) {
		for (ProjectPackageStatusEnum statusEnum : values()) {
			if (statusEnum.status.equals(status)) {
				return statusEnum;
			}
		}
		throw new NoSuchEnumValueException("ProjectPackageStatusEnum:" + status);
	}
	
	
}
